package com.servlet.yanglaoyuan.service;

import com.servlet.yanglaoyuan.pojo.User;

public interface userService {
    //绑定老人给用户
    void bindElderly(Long userId,Long elderlyId);
    //添加用户
    void addUser(User user);

    //删除用户
    void deleteUser(Long id);

    //修改用户信息
    void updateUser(User user);

    //根据用户名和密码查询用户
    User findByNameAndPassword(String username,String password);

    //根据id查询用户
    User findById(Long id);
}
